{% extends 'base.html' %}
{% load i18n %}
{% block content %}
<div class="content">
  <form action="/album/{% if album %}{{ album.key.id }}/edit{% else %}create{% endif %}" method="post">
    <div class="formrow">
      <label>{% trans "album name" %}:</label>
      <input name="album_name" type="text" {% if album %}value="{{ album.name }}"{% endif %}/>
    </div>
    {% if pictures.count %}
    <div class="formrow">
      <fieldset>
	    <legend>{% trans "set cover" %}</legend>
	    {% include 'pictures.html' %}
      </fieldset>
    </div>
    {% endif %}
    <div class="formrow">
      <input type="submit" value="{% trans 'save' %}">
      <a href="/album{% if album %}/{{ album.key.id }}{% endif %}" class="form_cancel">{% trans "cancel" %}</a>
    </div>
  </form>
</div>
{% endblock %}
